home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 18 / Developer Source Volume 18 (I-MODE Publications, Inc.)(2000).iso / visua / jan98 / swanf106.gif < prev   
Graphics Interchange Format  |  1998-06-08  |  30KB  |  588x414  |  4-bit (4 colors)
Labels: text | screenshot | font | black and white | number | document
OCR: Method Description void addNotify Never call this method. It connects a Frame abject with the peer class that inter- focos the Frame with its native counterpart in the operating system. String getTitle Returns the current title displayed in the frame window's fifle bar, void setTiffe (String title) Changes the title displayed in the frame window's title bar Image geticonimage . Returns the Image object that represents a minimized window's icon. void seticonimage(Image image) Changes the Image object that represents this window when minimized os an icon. MenuBar getMenuBar Returns a reference to the Frame's menu bar. If there is no menu bar, this method returns null. void setMenuBar(MenuBar mb) Sots or changes the Frame object's menu bor. You may change a Frame's menu bar ot any time and os many times os you want, void remove(MenuComportent mc) | Removes a menu component from the Frame's menu bar void dispose This is supposed to destroy the Frame window and remove any associated menu and other components, but it merely hides the window and detoches it from its peer class. After disposing a window, you may call show to display it again. boolean isResizable This method presumably returns true if the frame's window size can be changed. However, because there is no defined way to create a window that can't be resized, this method is of dubious value. Only true dialog boxes con be fixed in size. Perhaps some Java installation somewhere allows applets to create Frame objects only of a fixed size. That seems highly unlikely, but if you suspact a problem with this, you might call isResizable to check what's going on. void setCursor(int cursosType) Changes the cursor image displayed when the user moves the mouse pointer over the frame's interior. This image is probably not displayed when the user moves the mouse over the title bar and menu. As mentioned, it's best not to assume that users will see a specific shape. Pass this method an integer field such as CROSSHAIR CURSOR defined in the Frame class. Attempting to use any other val- ues will throw an exception of the IllegalArgumentException class inf gelCursorType Returns the current cursor image as one of the ... CURSOR fields defined in the Frame closs. Figure 6: The public methods of the Frame class